product = [['iphone',6888],['MacPro',14800],['小米6，2499'],['Coffee',31],['Book',60],['Nike',699]]
shop_car = []
shop_cost = []

while True:
    i =input()
    if i.isalnum():
        if i > 5:
            print("Please enter a number < 5 or enter q to exit ")
            continue
    if i.isalpha():
        break
    shop_car.append(product[i][0])
    shop_cost.append(product[i][1])
print(shop_car,shop_cost)

# 没有看到友好的提示啊